package com.cos.openapi.services;

import com.cos.openapi.entity.AdminUser;
import com.cos.openapi.pojo.JsonResult;
import com.cos.openapi.pojo.TableResult;

import java.util.List;
import java.util.Map;

public interface AdminUserServices {
    int deleteByPrimaryKey(Integer id);

    int insertSelective(AdminUser record);

    AdminUser selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(AdminUser record);
    /**
     *
     * @author: COS
     * @return:
     * @time: 2021/1/29 9:22
     * @description: 登录业务处理
     */
    JsonResult doLogin(String email,String password);

    TableResult table(Map<String, Object> map);

    JsonResult del(Integer[] ids);

    List<Integer> user_role(Integer userId);

    JsonResult assign_role(Integer userId, Integer[] roleIds);

    JsonResult add(AdminUser adminUser);

    JsonResult update(AdminUser adminUser);
}